<script type="text/ng-template" id="template-account.html">
    <h3>我的账户设置</h3>
    <div class="panel panel-info">
      <div class="panel-heading">
        <h3 class="panel-title">更改密码</h3>
      </div>
      <div class="panel-body">
        <form class="form-horizontal">
          <div class="form-group">
            <label class="col-sm-2 control-label">当前密码</label>
            <div class="col-sm-4">
              <input type="password" class="form-control" ng-model="pass.present" placeholder="当前密码">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">新密码</label>
            <div class="col-sm-4">
              <input type="text" class="form-control"  ng-model="pass.willuse" placeholder="新密码">
            </div>
          </div>
          <div class="row">
            <div class="col-sm-offset-2 col-sm-4">
              <button class="btn btn-success" ng-click="updatePass()" ng-disabled="!(pass.present && pass.willuse)">更新密码</button>
            </div>
          </div>

          <div ng-show="hint.error">
            <p>{{hint.text}}</p>
          </div>
        </form>
      </div>
    </div>
</script>